echo "DOWNLOADING" > /usr/local/etc/.vb6upd
basedir=/usr/local/etc/www/cgi-bin
cd $basedir
wget -q http://hdforall.googlecode.com/files/scripts.zip
if [ $? -ne 0 ]
	then
		exit 1
	fi
echo "DOWNLOAD_OK" > /usr/local/etc/.vb6upd
rm -f -r $basedir/scripts
wait
unzip -o scripts.zip
wait
chmod -R +x $basedir/scripts
cp -f /usr/local/etc/www/cgi-bin/videoRenderer.rss /usr/local/etc/www/cgi-bin/scripts/util/videoRenderer.rss
wait
echo "SUCCESS" > /usr/local/etc/.vb6upd
